package com.like.lazyfragment.ui3

import android.os.Bundle
import android.util.Log
import android.util.LogPrinter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.like.lazyfragment.R
import kotlinx.android.synthetic.main.activity_main3.*
import kotlin.math.log

class Fragment2() : Fragment() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return layoutInflater.inflate(R.layout.activity_main3, container, false)
    }

    override fun onResume() {
        super.onResume()
        Log.e("Fragment2---------->","onResume")
        textView.text = "第二页"
    }

    override fun onPause() {
        super.onPause()
        Log.e("Fragment2---------->","onPause")
        textView.text = "loading。。。。。"
    }

}